//
//  AYMNetworkTool.h
//  QuickCure
//
//  Created by 徐绩 on 16/5/4.
//  Copyright © 2016年 ayumi. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>
#import "AYMAreaModel.h"

// 定义请求方式的格式
typedef NS_ENUM(NSUInteger, RequestMethod) {
    RequestMethodGet,
    RequestMethodPost
};



@interface AYMNetworkTool : AFHTTPSessionManager

//网络工具单例
+(instancetype)sharedManager;

//网络请求
- (void)request:(RequestMethod)method urlString:(NSString *)urlString parameters:(id)parameters finished:(void(^)(id responseObject, NSError *error))finished;


//用第三方框架检查网络连接是否正常的方法  (用在登录判断中)
- (BOOL)isReachableByAFN;

@end
